#!/usr/bin/env python
# coding=utf-8
"""
@Author  : youjia - 卞志伟
@file    : key_util.py
@contact : bianzhiwei@iyoujia.com
@time    : 2019-06-04 17:02 
@Desc    : 
@Software: PyCharm
"""

# 日报级别
LEVEL_CITY = 1  # 城市级别
LEVEL_SERVICE = 2  # 服务中心级别
LEVEL_WORK = 3  # 门店级别
LEVEL_ONLINE = 4  # 线上销售级别
LEVEL_OFFLINE = 5  # 线下管家级别
LEVEL_HOUSE = 6  # 房屋级别
LEVEL_INVESTOR = 7  # 投资人级别
LEVEL_CITY_YOUJIA = 11  # 有家城市级别
LEVEL_CITY_HOME = 10  # 城宿城市级别


# 日报数据日期类型
DTYPE_MONTH = 1  # 本月一号至截止日
DTYPE_YESTERDAY = 2  # 昨日
DTYPE_FUTURE_FOURTEEN = 3  # 未来是十四天
DTYPE_MONTH_SURPLUS = 4  # 本月剩余
DTYPE_AGO_SEVEN = 5  # 前七天
DTYPE_AGO_THIRTY = 6  # 前30天

TITLE_MONTH = '本月一号至昨日数据'
TITLE_YESTERDAY = '昨日数据'
TITLE_FUTURE_FOURTEEN = '未来十四天前数据'
TITLE_MONTH_SURPLUS = '本月剩余'
TITLE_AGO_SEVEN = '前七天数据'
TITLE_AGO_THIRTY = '前三十天数据'

DAY_REPORT_COLOR = {TITLE_MONTH: '#FFEC8B', TITLE_YESTERDAY: '#FFE4B5', TITLE_FUTURE_FOURTEEN: '#FFA07A',
                    TITLE_MONTH_SURPLUS: '#F0F8FF', TITLE_AGO_SEVEN: '#B3EE3A', TITLE_AGO_THIRTY: '#CCCCCC'}

DAY_REPORT_CHANNEL_COLOR = {"下单数": '#FFEC8B', "成功订单数": '#FFE4B5', "下单间夜": '#FFA07A', "实际入住间夜": '#F0F8FF',
                            "下单GMV": '#B3EE3A', "实际GMV": '#CCCCCC', "下单平均日价": '#F0F0F0', "实际平均日价": '#CDCDC1'}

DAY_REPORT_BUSINESS_COLOR = {"基础数据": '#FFEC8B', "今日数据": '#FFE4B5', "昨日数据": '#FFA07A', "累计数据": '#F0F8FF',
                             "途家": '#B3EE3A', "榛果": '#CCCCCC', "爱彼迎": '#F0F0F0'}

INDEX_CITY = ['城市']
INDEX_SERVICE = ['城市', '服务中心']
INDEX_WORK = ['城市', '门店']
INDEX_ONLINE = ['城市', '线上销售']  # '门店', '服务中心',
INDEX_OFFLINE = ['城市', '线下管家']  # '门店', '服务中心',
INDEX_HOUSE = ['房屋ID', '城市', '门店', '服务中心', '线上销售', '线下管家', '投资人']
INDEX_INVESTOR = ['投资人']

tujia_dis_remove = ["艺龙网", "艺龙平台", "飞猪平台", "其他平台",
                    "飞猪民宿专营店", "携程酒店", "去哪儿酒店",
                    "艺龙酒店", "京东", "飞猪商户度假", "飞猪民宿度假", "飞猪商户店"]

REMOVE_CITY = 376
NOT_DEL = 0

# own_type` smallint(6) DEFAULT '0' COMMENT '房源所属：1-有家；2-城宿；3-斯维登；'
YOU_JIA = 1
CITY_HOME = 2
SWEETOME = 3
